package com.biz.primus.ms.depot;

import com.biz.primus.ms.base.config.BaseConfiguration;
import com.biz.primus.ms.base.config.RestTemplateConfiguration;
import com.biz.primus.ms.depot.stream.DepotUpdateSource;
import com.biz.primus.ms.depot.stream.EmpSpreadSink;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * DepotServiceApplication
 *
 * @author jia JKLiues
 * @date 2017年09月19日
 * @reviewer
 * @see
 */
@EnableScheduling
@SpringCloudApplication
@Import({
        BaseConfiguration.class,
        RestTemplateConfiguration.class,
})
@EnableBinding({
        DepotUpdateSource.class,
        EmpSpreadSink.class
})
public class DepotServiceApplication {
    public static void main(String[] args) {
        SpringApplication.run(DepotServiceApplication.class, args);
    }

}